import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class CreateTableByPo {
	public static void main(String[] args) {
		 //ClassPathXmlApplicationContext cpa = new ClassPathXmlApplicationContext("classpath:applicationContext.xml");
		 Configuration cfg = new Configuration().configure();  
		 SchemaExport export = new SchemaExport(cfg);  
		 export.create(true, true);  
		 
	}

}
